<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
        <style>
            
         dd,dt{line-height:30px;}
         dt{font-weight: bold;}
        </style>
        <script>
            function pay()
            {
				var times = "{$info.times}";
                $.post("__URL__/handle_jifen",{jifen:times},function(data){
				
                    if(data == 1)
                    {
                      for(i=0;i<times;i++)
					  {
						phone = "{$info.phone}";
						money = "{$info.money}";
						$.post('__URL__/gopay',{phone:phone,money:money},function(result){	
							$("#pay").append('实际支付金额为：'+result.data.pay_amount+'，请点击图片进行支付<embed type="application/x-unionpayplugin" uc_plugin_id="unionpay" height="80" width="250" class="img1" noinstallpic="http://epay.uc.cn/img/html5/mobile/unionpay_not_install.png?v=120727" paydata="'+result.data.pay_params+'"></embed><br>');
						},'JSON');
					  }	
                        $("#gopay").attr("onclick","");
                    }else{
                        document.write("积分不够，请先充值之后再操作！<a href='__APP__/Buy'>点击充值</a>");
                    }
                });
                
            }
        </script>
            
    </head>
    <body>
			<form action="" method="post">
				<div style="margin: 0 auto;width:300px;">
					<dl>
						<dt>确认充值信息：</dt>
						<dd>手机号码：{$info.phone}<input type="hidden" name="phone" value="{$info.phone}"></dd>
						<dd>单笔金额：{$info.money}<input type="hidden" name="money" value="{$info.money}"></dd>
						<dd>充值次数：{$info.times}<input type="hidden" name="times" value="{$info.times}"></dd>
						<dd>扣除积分：{$info.times}<input type="hidden" name="jifen" value="{$info.times}"></dd>
						<dd><input type="hidden" name="step" value="1"><input type="submit" value="确认支付" id="gopay"> <input type="button" value="返回修改" onclick="history.go(-1)"></dd>
					</dl>
					
				</div>
			</form>
    </body>
</html>
